package com.itheima.methoddemo;

public class MethodDemo3 {
    public static void main(String[] args) {
        //需求：在方法里面定义两个变量并求和打印
        printAdd();
    }
    public static void printAdd(){
        int a = 10,b = 20;
        System.out.println(a + b);
    }
}
